package com.youlai.boot.modules.collect.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.modules.collect.model.entity.Collect;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.collect.model.query.CollectQuery;
import com.youlai.boot.modules.collect.model.vo.CollectVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户收藏Mapper接口
 *
 * @author maoyu
 * @since 2025-02-27 10:29
 */
@Mapper
public interface CollectMapper extends BaseMapper<Collect> {

    /**
     * 获取用户收藏分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<CollectVO> getCollectPage(Page<CollectVO> page, CollectQuery queryParams);

    CollectVO getCollect(Long userId,Long sourceId,int sourceType);

}
